package com.lc.demo.service.impl;

import com.lc.demo.bean.Classgrade;
import com.lc.demo.mapper.ClassGradeMapper;
import com.lc.demo.service.ClassGradleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: sakila
 * @Date: 2022/03/27/16:11
 * @Description:
 */
@Service
public class ClassGradleServiceImpl  implements ClassGradleService {

    @Autowired
    ClassGradeMapper classGradeMapper;

    @Override
    public String getClassNameById(Integer classid) {
        return classGradeMapper.getClassNameById(classid);
    }

    @Override
    public void addClass(Classgrade classgrade) {
        classGradeMapper.addClass(classgrade);
    }

    @Override
    public void updateClass(Classgrade classgrade) {
        classGradeMapper.updateClass(classgrade);
    }

    @Override
    public List<Classgrade> getClassList() {
        return classGradeMapper.getClassList();
    }
}
